/**
 * jims
 */
package com.jims.master.modules.operation.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.operation.entity.OperationApply;
import com.jims.master.modules.operation.entity.OperationDict;
import com.jims.master.modules.operation.entity.OperationNameApply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 手术申请DAO接口
 * @author DT
 * @version 2017-04-12
 */
@MyBatisDao
public interface OperationApplyDao extends CrudDao<OperationApply> {
	public List<OperationApply> findById(OperationApply operationApply);

    /**
     * 手术名称自动补全
     * @return
     */
    public List<OperationDict> findAutoCompletePriceList(@Param("operationDict") OperationDict operationDict, @Param("orgId") String orgId, @Param("q") String q, @Param("limit") String limit);

    /**
     * 判断手术名称是否存在
     * @return
     */
    public int ifOperNameExist( OperationNameApply operationNameApply);


}